{% extends "base.html" %}

{% block head %}
<title>index page</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
{% endblock %}

{% block navbar %}
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
  <a class="navbar-brand">RateMap</a>
  <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
    <span class="navbar-toggler-icon"></span>
  </button>
  <div class="collapse navbar-collapse" id="navbarNav">
    <ul class="navbar-nav">
      <li class="nav-item">
        <a class="nav-link" href="{{url_for('index')}}">主页</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="{{url_for('surround')}}">周边推荐</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="{{url_for('user_analysis')}}">用户分析</a>
      </li>
      <li class="nav-item">
        <a class="nav-link" href="{{url_for('shop_analysis')}}">店铺分析</a>
      </li>
      <li class="nav-item active">
        <a class="nav-link" href="{{url_for('area_analysis')}}">区域分析</a>
      </li>
    </ul>
  </div>
</nav>
{% endblock %}

{% block content %}
<form style="padding: 8px;" action="{{url_for('city_search')}}" method="post">
  <div class="form-group">
      <label for="formGroupExampleInput">输入城市名，查看该城市最热门的店铺</label>
      <input type="text" class="form-control" id="city" placeholder="城市名" name="arg_city">
  </div>
  <button type="submit" id="submit_btn" class="btn btn-primary">查询</button>
</form>
<form style="padding: 8px;" action="{{url_for('city_pop_shop')}}" method="post">
  <button type="submit" id="submit_btn" class="btn btn-primary">查看每个城市的最热门店铺</button>
</form>
{% endblock %}
